const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,

  token: state => state.user.token,
  userId: state => state.user.userId,
  avatar: state => state.user.avatar,
  name: state => state.user.name,
  username: state => state.user.username,
  roles: state => state.user.roles,
  userList: state => state.user.list,
  userTotal: state => state.user.total,
  others: state => state.user.others,

  tagList: state => state.tag.tagList,
  tagTotal: state => state.tag.tagTotal,

  sortList: state => state.sort.sortList,
  sortTotal: state => state.sort.sortTotal,

  qiniuToken: state => state.qiniu.qiniuToken,
  qiniuImg: state => state.qiniu.qiniuImg,
  qiniuPrefix: state => state.qiniu.qiniuPrefix,
  qiniuUpload: state => state.qiniu.qiniuUpload,

  permission_routers: state => state.permission.routers,
  addRouters: state => state.permission.addRouters,

  sources: state => state.article.sources,
  blogTypes: state => state.article.blogTypes,
  blogStates: state => state.article.blogStates,
  blogInfo: state => state.article.blogInfo,
  blogList: state => state.article.list,
  blogTotal: state => state.article.total
}
export default getters
